home *** CD-ROM | disk | FTP | other *** search
/ Meeting Pearls 1 / Meeting Pearls Vol 1 (1994).iso / installed_progs / text / faqs / linux.howto.uucp < prev    next >
Encoding:
Internet Message Format  |  1994-04-26  |  18.3 KB

  1. Subject: Linux UUCP HOWTO
  2. Newsgroups: comp.os.linux.announce,comp.os.linux.admin,comp.answers,news.answers
  3. From: vince@victrola.wa.com (Vince Skahan)
  4. Date: Mon, 25 Apr 1994 20:00:28 GMT
  5.  
  6. Archive-name: linux/howto/uucp
  7. Last-modified: 19 Apr 94
  8.  
  9.   The Linux UUCP HOWTO
  10.   Vince Skahan, <vince@victrola.wa.com>
  11.   v1.6, Last modified 26 March 1994
  12.  
  13.   This  document  describes  the  setup  and  care+feeding of UUCP under
  14.   Linux.  You need to read this if you plan to connect to  remote  sites
  15.   via  UUCP  via a modem, via a direct-connection, or via Internet.  You
  16.   probably do *not* need to read this document if don't talk UUCP.
  17.  
  18.   1.  Introduction
  19.  
  20.   The intent of this document is to answer some  of  the  questions  and
  21.   comments  that  appear  to  meet  the  definition of "frequently asked
  22.   questions" about UUCP software under Linux in general, and the version
  23.   in the Linux SLS and Slackware distributions in particular.
  24.  
  25.   This  document  and  the corresponding Mail and News "HOWTO" documents
  26.   collectively supersede the UUCP-NEWS-MAIL-FAQ that has previously been
  27.   posted to comp.os.linux.announce.
  28.  
  29.   1.1.  New versions of this document
  30.  
  31.   New   versions  of  this  document  will  be  periodically  posted  to
  32.   comp.os.linux.announce, comp.answers,  and  news.answers.   They  will
  33.   also  be  added  to  the  various anonymous ftp sites who archive such
  34.   information including sunsite.unc.edu:/pub/Linux/docs/HOWTO.
  35.  
  36.   1.2.  Feedback
  37.  
  38.   I am interested in any feedback, positive or negative,  regarding  the
  39.   content  of  this  document  via e-mail.  Definitely contact me if you
  40.   find errors or obvious omissions.
  41.  
  42.   I read, but do not necessarily  respond  to,  all  e-mail  I  receive.
  43.   Requests  for  enhancements will be considered and acted upon based on
  44.   that day's combination of available time, merit of  the  request,  and
  45.   daily blood pressure :-)
  46.  
  47.   Flames will quietly go to /dev/null so don't bother.
  48.  
  49.   Feedback concerning the actual format of the document should go to the
  50.   HOWTO coordinator - Matt Welsh (mdw@sunsite.unc.edu).
  51.  
  52.  
  53.   1.3.  Copyright Information
  54.  
  55.   The UUCP-HOWTO is copyrighted (c)1994 Vince Skahan.
  56.  
  57.   A verbatim copy  may  be  reproduced  or  distributed  in  any  medium
  58.   physical or electronic without permission of the author.  Translations
  59.   are similarly permitted without express permission if  it  includes  a
  60.   notice on who translated it.
  61.  
  62.   Short  quotes  may  be  used  without  prior  consent  by  the author.
  63.   Derivative work and partial distributions of the  UUCP-HOWTO  must  be
  64.   accompanied  with  either a verbatim copy of this file or a pointer to
  65.   the verbatim copy.
  66.  
  67.   Commercial redistribution is  allowed  and  encouraged;  however,  the
  68.   author would like to be notified of any such distributions.
  69.  
  70.   In short, we wish to promote dissemination of this information through
  71.   as many channels as possible. However, we do wish to retain  copyright
  72.   the  HOWTO  documents,  and  would like to be notified of any plans to
  73.   redistribute the HOWTOs.
  74.  
  75.   We further want  that  ALL  information  provided  in  the  HOWTOS  is
  76.   disseminated.   If  you have questions, please contact Matt Welsh, the
  77.   Linux HOWTO coordinator, at mdw@sunsite.unc.edu, or +1 607 256 7372.
  78.  
  79.  
  80.   1.4.  Standard Disclaimer
  81.  
  82.   Of course, I disavow any potential liability for the contents of  this
  83.   document.  Use of the concepts, examples, and/or other content of this
  84.   document is entirely at your own risk.
  85.  
  86.  
  87.   1.5.  Other sources of information
  88.  
  89.   1.5.1.  USENET
  90.  
  91.   comp.mail.uucp can answer most of your UUCP questions
  92.  
  93.   1.5.2.  Mailing Lists
  94.  
  95.   There is a Taylor UUCP mailing list.
  96.  
  97.   To join (or get off) the list, send mail to
  98.  
  99.                 taylor-uucp-request@gnu.ai.mit.edu
  100.  
  101.  
  102.  
  103.   This request goes to a person, not to a program, so please  make  sure
  104.   that  you include the address at which you want to receive mail in the
  105.   text of the message.
  106.  
  107.   To send a message to the list, send it to
  108.  
  109.                taylor-uucp@gnu.ai.mit.edu
  110.  
  111.  
  112.  
  113.  
  114.   1.5.3.  Books
  115.  
  116.   HDB and V2 versions of UUCP are documented  in  about  every  vendor's
  117.   documentation as well as in almost all *nix communications books.
  118.  
  119.   Taylor  config  files  are currently only documented in the info files
  120.   provided with the sources (and in the SLS distribution hopefully).  To
  121.   read  them,  you  can grab the nice "infosrc" program from the SLS "s"
  122.   disks and compile it.
  123.  
  124.   The following is a non-inclusive set of books that will help.
  125.  
  126.   o  "Managing UUCP and USENET" from O'Reilly and Associates  is  in  my
  127.      opinion  the  best book out there for figuring out the programs and
  128.      protocols involved in being a USENET site.
  129.  
  130.   o  "Unix  Communications"  from  The  Waite  Group  contains  a   nice
  131.      description of all the pieces (and more) and how they fit together.
  132.  
  133.   o  "Practical Unix Security" from O'Reilly and Associates has  a  nice
  134.      discussion of how to secure UUCP in general.
  135.  
  136.   o  "The  Internet Complete Reference" from Osborne is a fine reference
  137.      book that explains the various services available on  Internet  and
  138.      is  a  great  "one-stop-shopping"  source  for information on news,
  139.      mail, and various other Internet resources.
  140.  
  141.   1.6.  Where *NOT* to look for help
  142.  
  143.   There is nothing "special" about configuring and  running  UUCP  under
  144.   Linux  (any more).  Accordingly, you almost certainly do *NOT* want to
  145.   be posting  generic  UUCP-related  questions  to  the  comp.os.linux.*
  146.   newsgroups.
  147.  
  148.  
  149.   Unless  your posting is truly Linux-specific (ie, "please tell me what
  150.   config file support is built into the binaries for Taylor  uucp  v1.04
  151.   in  SLS v1.02"), you should be asking your questions in comp.mail.uucp
  152.   or on the Taylor UUCP mailing list as indicated above.
  153.  
  154.   Let me repeat that.
  155.  
  156.   There is virtually no reason to  post  anything  uucp-related  in  the
  157.   comp.os.linux  hierarchy  any  more.  There are existing newsgroups in
  158.   the comp.mail.* hierarchy to handle *ALL* your questions.
  159.  
  160.   IF YOU POST TO COMP.OS.LINUX.* FOR NON-LINUX-SPECIFIC  QUESTIONS,  YOU
  161.   ARE LOOKING IN THE WRONG PLACE FOR HELP.  THE UUCP EXPERTS HANG OUT IN
  162.   THE PLACES INDICATED ABOVE AND GENERALLY DO NOT RUN LINUX.
  163.  
  164.   POSTING TO THE LINUX HIERARCHY FOR NON-LINUX-SPECIFIC QUESTIONS WASTES
  165.   YOUR  TIME  AND  EVERYONE  ELSE'S  AND  IT  FREQUENTLY DELAYS YOU FROM
  166.   GETTING THE ANSWER TO YOUR QUESTION.
  167.  
  168.  
  169.   2.  Hardware Requirements
  170.  
  171.  
  172.   There are no specific hardware  requirements  for  UUCP  under  Linux.
  173.   Basically any Hayes-compatible modem works painlessly with UUCP.
  174.  
  175.   In  most  cases,  you'll  want  the  fastest modem you can afford.  In
  176.   general, you want to have a 16550 UART on your serial board  or  built
  177.   into your modem to handle speeds of above 9600 baud.
  178.  
  179.   If  you  don't  know what that last sentence means, please consult the
  180.   comp.dcom.modems  group  or  the  various  fine   modem   and   serial
  181.   communications FAQs and periodic postings on USENET.
  182.  
  183.  
  184.   3.  Getting UUCP
  185.  
  186.   Taylor  UUCP (current version 1.04) is available on prep.ai.mit.edu in
  187.   source form and in various Linux distributions in binary form.
  188.  
  189.   The newspak-2.1.tar.z distribution contains config  files  and  readme
  190.   files  related  to  building uucp, news, and mail software under Linux
  191.   from the various freely-available sources.  It can usually be found on
  192.   sunsite.unc.edu in the directory /pub/Linux/system/Mail.
  193.  
  194.  
  195.   4.  Installing the Software
  196.  
  197.   (Much  of  this  section is taken verbatim from the README file in the
  198.   Taylor UUCP v1.04 sources - it's provided  here  so  I  can  help  you
  199.   "rtfm" instead of just telling you to do so)
  200.  
  201.   Detailed compilation instructions are in uucp.texi in the sources.
  202.  
  203.   You can grab "known good" conf.h and policy.h files for Linux from the
  204.   newspak distribution referred to in the "other sources of information"
  205.   section  above.   In  that  case,  you can probably go right to typing
  206.   "make".
  207.   4.1.  Extracting the compressed sources
  208.  
  209.   To extract a gzip'd tar archive, I do the following:
  210.  
  211.                   gunzip -c filename.tar.z | tar xvf -
  212.  
  213.  
  214.   A "modern" tar can just do a:
  215.  
  216.                  tar -zxvf filename.tgz
  217.  
  218.  
  219.  
  220.   4.2.  Edit Makefile.in to set installation directories.
  221.  
  222.   Here, I set "prefix" to "/usr" rather than the default of "/usr/local"
  223.  
  224.  
  225.   4.3.  Run "configure"
  226.  
  227.   Type "sh configure".
  228.  
  229.   The  configure  script  will  compile a number of test programs to see
  230.   what is available on your system and will calculate many things.
  231.  
  232.   The configure script will create conf.h from  conf.h.in  and  Makefile
  233.   from Makefile.in.  It will also create config.status, which is a shell
  234.   script which actually creates the files.
  235.  
  236.  
  237.   4.4.  Configure the future setup of the software
  238.  
  239.  
  240.   4.4.1.  Examine conf.h and Makefile to make sure they're right.
  241.  
  242.   I took the defaults
  243.  
  244.   4.4.2.  Edit policy.h for your local system.
  245.  
  246.  
  247.   o  - set the type of lockfiles you want (HAVE_HDB_LOCKFILES)
  248.  
  249.   o  -   set   the   type   of   config   files   you   want   built  in
  250.      (HAVE_TAYLOR_CONFIG, HAVE_V2_CONFIG, HAVE_HDB_CONFIG)
  251.  
  252.   o  - set the type of spool directory structure you want (SPOOLDIR_HDB)
  253.  
  254.   o  - set the type of logging you want (HAVE_HDB_LOGGING)
  255.  
  256.   o  -  set the default search path for commands (I added /usr/local/bin
  257.      to mine)
  258.  
  259.   4.5.  Compile and install the software
  260.  
  261.  
  262.   o  Type "make".
  263.  
  264.   o  Use "uuchk | more" to  check  configuration  files.   You  can  use
  265.      "uuconv" to convert between configuration file formats.
  266.  
  267.   o  Type "make install" to install.
  268.  
  269.   4.6.  Set up the config files
  270.  
  271.   I'd recommend you start by taking the attached known-good config files
  272.   for HDB mode and installing them.
  273.   o  Make sure that the Permissions file indicates exactly  where  rmail
  274.      and  rnews  are  to be found if you put them anywhere other than in
  275.      the path you specified in policy.h
  276.  
  277.   o  Make sure that your Devices files matches the  actual  location  of
  278.      your modem (cua1=COM2 in the examples)
  279.  
  280.   o  Edit  the  Systems  file  to  set up the system(s) you talk to with
  281.      their speed, phone number, username, and password.
  282.  
  283.      *PROTECT THIS FILE AGAINST WORLD READ*
  284.  
  285.   o  Set up the Permissions file and add a set of lines  for  each  site
  286.      you  talk  to.  For security reasons, it's recommended to make sure
  287.      they each have a separate account (if you allow  dialin)  and  home
  288.      directory so you can track things.
  289.  
  290.  
  291.   4.7.  Give it a try
  292.  
  293.  
  294.   /usr/lib/uucp/uucico -r 1 -x 9 -s remote_system_name
  295.  
  296.   The  -x  9  will  have  maximum  debugging  information written to the
  297.   /usr/spool/uucp/.Admin/audit.local file for help in initial setup.
  298.  
  299.   I normally run -x 4 here since that level logs details  that  help  me
  300.   with  login  problems.  Obviously, this contains cleartext information
  301.   from your Systems file (account/password) so protect it against world-
  302.   read.
  303.  
  304.  
  305.   o  from Pierre.Beyssac@emeraude.syseca.fr
  306.  
  307.      Taylor  has  more  logging  levels.   Use -x all to get the highest
  308.      level possible.
  309.  
  310.      Also,  do  a  "tail  -f  /usr/spool/uucp/.Admin/audit.local"  while
  311.      debugging to watch things happen on the fly.
  312.  
  313.   4.8.  It doesn't work - now what ?
  314.  
  315.   In  general,  you  can  refer  to the documentation mentioned above if
  316.   things don't work.  You can also refer to your more  experienced  UUCP
  317.   neighbors for help.  Usually, it's something like a typo anyway.
  318.  
  319.  
  320.   5.  Frequently Asked Questions about Linux UUCP
  321.  
  322.  
  323.  
  324.   5.1.   Why is my binary of uucp configured in HDB rather than "Taylor"
  325.   mode?
  326.  
  327.   (religious  mode  on  - I know some people are just as religious about
  328.   "ease of use" as I am about "being standard".  That's  why  they  make
  329.   source code you can build your own from :-) )
  330.  
  331.   Because  IMHO  it's  the de-facto standard UUCP implementation at this
  332.   time.  There are thousands of sites with experienced admins and  there
  333.   are many places you can get incredibly good information concerning the
  334.   HDB setup.
  335.  
  336.   The uucp-1.04 that's in SLS 1.02 and later  has  all  three  modes  of
  337.   config  files  built  in.  While I can't test it, I did "rtfm" and Ian
  338.   Taylor tells me that it should work.
  339.   The search order for config files is Taylor then V2 (L.sys)  then HDB.
  340.   Use  the  uuconv utility in /usr/lib/uucp to convert config files from
  341.   one mode to another.
  342.  
  343.   If  you  can't  wait,  grab  the  sources   for   uucp   and   specify
  344.   HAVE_BNU_CONFIG,   HAVE_V2_CONFIG   *and*  HAVE_TAYLOR_CONFIG  in  the
  345.   policy.h file and type "make".
  346.  
  347.   The following workaround is ugly, but it does work, if you want to run
  348.   Taylor configs from binaries that don't have it built in.
  349.  
  350.   o  From mbravo@tctube.spb.su (Michael E. Bravo)
  351.  
  352.      -  add   "-I  /usr/local/lib/uucp/config"  to _every_ invocation of
  353.      whatever program in uucp package
  354.  
  355.   5.2.  Why do I  get  "timeout"  on  connections  when  I  upgraded  to
  356.   uucp-1.04 ?
  357.  
  358.  
  359.   o  from Ed Carp - erc@apple.com
  360.  
  361.      If you use a "Direct" device in the Devices file, there's now a  10
  362.      second  timeout  compiled in.  Make the name of the Device anything
  363.      other than "Direct".  If you tweak the example /usr/lib/uucp  files
  364.      provided with SLS, you won't have problems with this one.
  365.  
  366.   o  from Greg Naber - greg@squally.halcyon.com
  367.  
  368.      If  you  get  chat  script  timeouts,  you can tweak the sources by
  369.      editing at line 323 in uuconf/syssub.c  and  changing  the  default
  370.      timeouts from 10 seconds to something larger.
  371.  
  372.   o  from Ed Rodda - ed@orca.wimsey.bc.ca
  373.  
  374.      If  you  get  chat  script  timeouts, typically connecting to other
  375.      Taylor sites, a pause after login can fix this.
  376.  
  377.      feed Any ACU,ag 38400 5551212 ogin: \c\d "" yourname word: passwd
  378.  
  379.  
  380.  
  381.   o  from Dr. Eberhard W. Lisse - el@lisse.NA
  382.  
  383.      Some kernels  experience  modems  hanging  up  after  a  couple  of
  384.      seconds.  The following patch sent by Ian Taylor might help.
  385.  
  386.      *** conn.c.orig Mon Feb 22 20:25:24 1993
  387.      --- conn.c      Mon Feb 22 20:33:10 1993
  388.      ***************
  389.      *** 204,209 ****
  390.      --- 204,212 ----
  391.  
  392.           /* Make sure any signal reporting has been done before we set
  393.             fLog_sighup back to TRUE.  */
  394.      +   /* SMR: it seems to me if we don't care about SIGHUPS, we should clear
  395.      +      the flag before we return  */
  396.      +   afSignal[INDEXSIG_SIGHUP] = FALSE;
  397.          ulog (LOG_ERROR, (const char *) NULL);
  398.          fLog_sighup = TRUE;
  399.  
  400.  
  401.  
  402.  
  403.  
  404.  
  405.   5.3.  Why doesn't HDB anonymous uucp seem to work ?
  406.  
  407.   The SLS anonymous uucp only works in Taylor mode because it's compiled
  408.   with HAVE_TAYLOR_CONFIG.  If you want to do anon  uucp  in  HDB  mode,
  409.   you'll  have  to  recompile  the  sources  with just HDB defined.  Ian
  410.   Taylor is considering which way to deal with this "feature".
  411.  
  412.   Also, Taylor in HDB mode seems to be  sensitive  to  white  space  and
  413.   blank  lines.   To be safe, make sure that there are no blank lines or
  414.   trailing spaces in the Permissions file.
  415.  
  416.   Lastly, make sure that  you  have  a  file  called  remote.unknown  in
  417.   /usr/lib/uucp  and that it's *NOT* executable.  See the O'Reilly+Assoc
  418.   book "Managing UUCP and USENET" for details regarding this file.
  419.  
  420.  
  421.   5.4.  What does "no matching ports found" mean ?
  422.  
  423.   In  all  probability,   you   are   attempting   to   use   a   device
  424.   (/usr/lib/uucp/Devices)  that  doesn't  exist,  or  the  device you've
  425.   specified in the /usr/lib/uucp/Systems file doesn't match up with  any
  426.   valid devices in the Devices file.
  427.  
  428.   Following  this are *sanitized* versions of my working Taylor 1.04 HDB
  429.   config files that you can plug in and use.
  430.  
  431.   note the "ACU" in the Systems ?  That tells which  "port"  to  use  in
  432.   Devices
  433.  
  434.   see  the  "scout" word in Systems ?  That tells which dialer to use in
  435.   Dialers.
  436.  
  437.   If you had a ACU port, but none that matched the specified  dialer  on
  438.   the same line in Systems, you'll get that message.
  439.  
  440.  
  441.   5.5.  What are known good config files for HDB mode ?
  442.  
  443.   The  following  are  "known-good"  config  files for Taylor 1.04 under
  444.   Linux in HoneyDanBer mode.  They work on kernels of 0.99-8  or  later.
  445.   All files should be in /usr/lib/uucp unless you've tweaked the sources
  446.   to put the uucp library elsewhere.
  447.  
  448.   If you *HAVE* put things in non-standard places, be aware that  things
  449.   like  sendmail  might  get  very confused. You need to ensure that all
  450.   communications-related programs  agree  on  your  idea  of  "standard"
  451.   paths.
  452.  
  453.   If  you're  running  a  kernel  of 0.99-7 or earlier, change "cua1" to
  454.   "ttyS1".
  455.  
  456.  
  457.  
  458.  
  459.  
  460.  
  461.  
  462.  
  463.  
  464.  
  465.  
  466.  
  467.  
  468.  
  469.  
  470.  
  471.   #------------- Devices -------------
  472.   # make sure the device (cua1 here) matches your system
  473.   # cua1 = COM2
  474.   #
  475.   # here "scout" is the Digicom Scout Plus 19.2 modem I use
  476.   # tbfast etc. is for a Telebit Trailblazer Plus modem's various speeds
  477.   #
  478.   ACU cua1 - 19200 scout
  479.   ACU cua1 - 9600 tbfast
  480.   ACU cua1 - 1200 tbslow
  481.   ACU cua1 - 2400 tbmed
  482.  
  483.   #------------- dialers --------------
  484.   # note the setting of the Trailblazer registers "on the fly"
  485.   # "scout" is a Digicom Scout Plus (Hayes-like) modem I use here
  486.   #
  487.   scout   =W-,    "" ATM0DT\T CONNECT
  488.   tbfast  =W-,    "" A\pA\pA\pT OK ATS50=255DT\T CONNECT\sFAST
  489.   tbslow  =W-,    "" A\pA\pA\pT OK ATS50=2DT\T CONNECT\s1200
  490.   tbmed   =W-,    "" A\pA\pA\pT OK ATS50=3DT\T CONNECT\s2400
  491.  
  492.   #-------------- Systems -------------
  493.   # this is a very generic entry that will work for most systems
  494.   #
  495.   # the Any;1 means that you can call once per minute with using -f (force)
  496.   # the ACU,g means force "g" protocol rather than Taylor's default "i"
  497.   #
  498.   fredsys Any;1 ACU,g 19200 scout5555555 "" \r ogin:--ogin: uanon word: uanon
  499.  
  500.   #-------------------------------- Permissions -------------------------
  501.  
  502.   # Taylor UUCP in HDB mode appears to be sensitive to blank lines.
  503.   # Make sure all Permissions lines are real or commented out.
  504.   #
  505.   # this is a anonymous uucp entry
  506.   #
  507.   LOGNAME=nuucp MACHINE=OTHER \
  508.   READ=/usr/spool/uucp/nuucp \
  509.   WRITE=/usr/spool/uucp/nuucp \
  510.   SENDFILES=yes REQUEST=yes \
  511.   COMMANDS=/bin/rmail
  512.   #
  513.   # this is a normal setup for a remote system that talks to us
  514.   # note the absolute path to rnews since this site puts things
  515.   # in locations that aren't "standard"
  516.   #
  517.   LOGNAME=fredsys MACHINE=fredsys \
  518.   READ=/usr/spool/uucp/fredsys:/usr/spool/uucp/uucppublic:/files \
  519.   WRITE=/usr/spool/uucp/fredsys:/usr/spool/uucppublic \
  520.   SENDFILES=yes REQUEST=yes \
  521.   COMMANDS=/bin/rmail:/usr/local/lib/news/bin/rnews
  522.   #----------------------------------------------------------------------
  523.  
  524.  
  525.  
  526.  
  527.   6.  Acknowledgements
  528.  
  529.  
  530.   The following people have helped in the assembly  of  the  information
  531.   (and experience) that helped make this document possible:
  532.  
  533.   Ed  Carp,  Steve  Robbins,  Ian Taylor, Greg Naber, Matt Welsh, Pierre
  534.   Beyssac
  535.  
  536.  
  537.   If I forgot anybody, my apologies.
  538.  
  539.